package com.itheima.advantagesup.entity;

import com.itheima.advantagesup.vo.RoleInfoVO;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class SysRoleInfo {
    private String id;
    private String name;
    private String description;
    private LocalDateTime create_date;
    private LocalDateTime update_date;
    private String remarks;
    private char del_flag;
    private int superadmin;
    private String default_data;

    public RoleInfoVO transformRoleInfoVO(){
        RoleInfoVO roleInfoVO = new RoleInfoVO();
        roleInfoVO.setId(id);
        roleInfoVO.setName(name);
        roleInfoVO.setDescription(description);
        roleInfoVO.setCreate_date(create_date);
        roleInfoVO.setUpdate_date(update_date);
        roleInfoVO.setRemarks(remarks);
        roleInfoVO.setDel_flag(del_flag);
        roleInfoVO.setSuperadmin(superadmin);
        roleInfoVO.setDefault_data(default_data);
        //roleInfoVO.setAuthList();
        return roleInfoVO;
    }
}
